package com.air.designmodel.two.entity.son;

import com.air.designmodel.two.behavior.impl.FlyNoWay;
import com.air.designmodel.two.behavior.impl.Quack;
import com.air.designmodel.two.entity.father.Duck;

/**
 * @author shent
 */
public class ModelDuck extends Duck {
    public ModelDuck() {
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("ModelDuck is me");
    }
}
